#pragma once
#include"public_struct.h"
int countSegments(string s) {
	stringstream input(s);
	string temp;
	int result = 0;
	while (input >> temp) {
		++result;
	}
	return result;
}